package cn.ilovese.collect.controller.user;

import cn.ilovese.collect.service.user.UserService;
import cn.ilovese.collect.vo.ResultVO;
import cn.ilovese.collect.vo.statistic.DataVisualizationVO;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("/admin")
public class AdminController {

    @Resource
    UserService userService;

    @GetMapping("/graph")
    public ResultVO<List<DataVisualizationVO>> getStatisticGraph(@RequestParam String graphName){
        return userService.getStatisticGraph(graphName);
    }
}
